<?php

class InformacionController extends Controller {

    public function index() {
        include 'smc/models/article_model.php';
        $_POST['TITLE_WEBSITE'] = 'Informacion en ' . TITLE_WEBSITE;
        $this->view->render('informacion/index.php');
    }

    public function more() {
        include 'smc/models/article_model.php';
        $extract = explode('-', URLVariablesClass::get('more'));
        $_POST['more'] = $extract[0];
        $results = ArticleModel::search($extract[0], CATEGORY);
        $_POST['category'] = database::convert_query_in_array($results['result']);
        $results = ArticleModel::search($extract[0], FILE);
        $_POST['file'] = database::convert_query_in_array($results['result']);
        require 'comment_controller.php';
        unset($extract[0]);
        $title = implode(' ', $extract);
        $_POST['TITLE_WEBSITE'] = $title . ' - ' . TITLE_WEBSITE;
        $this->view->render('more_article/index.php');
    }

}

?>